package com.nbsaas.boot.site.rest.convert;

import com.nbsaas.boot.site.data.entity.Advise;
import com.nbsaas.boot.site.api.domain.simple.AdviseSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* -列表对象转换器
*/

public class AdviseSimpleConvert implements Converter<AdviseSimple, Advise> {




@Override
public AdviseSimple convert(Advise source) {
    AdviseSimple result = new AdviseSimple();

                result.setCompanyName(source.getCompanyName());
                result.setHardwareFeedback(source.getHardwareFeedback());
                result.setPreSalesFeedback(source.getPreSalesFeedback());
                result.setSoftwareFeedback(source.getSoftwareFeedback());
                result.setId(source.getId());
                result.setFinancialFeedback(source.getFinancialFeedback());
                result.setLogisticsFeedback(source.getLogisticsFeedback());
                result.setAddDate(source.getAddDate());
                result.setContactMethod(source.getContactMethod());
                result.setPostSalesFeedback(source.getPostSalesFeedback());
                result.setLastDate(source.getLastDate());


    return result;
}

}